package cn.doitedu.olap_doit13.controller;


import cn.doitedu.olap_doit13.pojo.ProvinceDau;
import cn.doitedu.olap_doit13.service.FlowRptsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.*;
import java.util.List;

@RestController
public class FlowRptsController {

    @Autowired
    FlowRptsService rptsService;

    @RequestMapping("/titan/dauprovince")
    public List<ProvinceDau> queryProvinceDau(String start,String end) throws SQLException {

        List<ProvinceDau> dauLst = rptsService.queryProvinceDau(start, end);

        return dauLst;
    }

}
